package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineStudentCourseTemp = "online_student_course_temp"

func init() {
	var r = &OnlineStudentCourseTemp{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineStudentCourseTemp struct {
	StudentCourseId  int    `column:"student_course_id" modify:"true" json:"studentCourseId" form:"studentCourseId"`
	StudentId        int    `modify:"true" json:"studentId" form:"studentId" column:"student_id"`
	ClassId          int    `column:"class_id" modify:"true" json:"classId" form:"classId"`
	CourseId         int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	TermId           int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	Seat             int    `json:"seat" form:"seat" column:"seat" modify:"true"`
	Score            int    `json:"score" form:"score" column:"score" modify:"true"`
	Rank             int    `column:"rank" modify:"true" json:"rank" form:"rank"`
	Accuracy         int    `form:"accuracy" column:"accuracy" modify:"true" json:"accuracy"`
	Status           int    `json:"status" form:"status" column:"status" modify:"true"`
	Diamond          int    `json:"diamond" form:"diamond" column:"diamond" modify:"true"`
	NormalScore      int    `form:"normalScore" column:"normal_score" modify:"true" json:"normalScore"`
	HideScore        int    `json:"hideScore" form:"hideScore" column:"hide_score" modify:"true"`
	NormalRank       int    `json:"normalRank" form:"normalRank" column:"normal_rank" modify:"true"`
	SupplyScore      int    `json:"supplyScore" form:"supplyScore" column:"supply_score" modify:"true"`
	ClassAvgScore    int    `json:"classAvgScore" form:"classAvgScore" column:"class_avg_score" modify:"true"`
	ClassMaxScore    int    `modify:"true" json:"classMaxScore" form:"classMaxScore" column:"class_max_score"`
	StudentCount     int    `json:"studentCount" form:"studentCount" column:"student_count" modify:"true"`
	SupplyExpectTime int    `json:"supplyExpectTime" form:"supplyExpectTime" column:"supply_expect_time" modify:"true"`
	NeedSupply       int    `json:"needSupply" form:"needSupply" column:"need_supply" modify:"true"`
	SupplyStatus     int    `column:"supply_status" modify:"true" json:"supplyStatus" form:"supplyStatus"`
	SupplyBeginTime  string `json:"supplyBeginTime" form:"supplyBeginTime" column:"supply_begin_time" modify:"true"`
	SupplyEndTime    string `column:"supply_end_time" modify:"true" json:"supplyEndTime" form:"supplyEndTime"`
	CreateTime       string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime       string `form:"updateTime" column:"update_time" modify:"false" json:"updateTime"`
}

func (r *OnlineStudentCourseTemp) Name() string {
	return RecordNameOnlineStudentCourseTemp
}
